<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js包/vue.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        html,body {
            width: 100%;
            height: 100%;
        }
        #app {
            width: 100%;
            height: 50px;
            text-align: center;
            font-size: 20px;
            font-weight: 400;
            line-height: 50px;
            background: turquoise;
        }
        .center > div {
            float: left;
            margin-right: 30px;
            width:100px;
            cursor: pointer;
        }
        .center {
            width: 700px;
            margin: auto;
        }
        .center>div:hover {
            background: coral;
            color: whitesmoke;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="center">
            <div v-for="(item,index) in contents">{{item}}</div>
        </div>
    </div>
    <script>
        var app = new Vue({
            el : "#app",
            data : {
                contents : ["首页","概况","未来发展","支持","帮助"],
                isactive:false,
            },
            methods: {
                change(e) {
                    e.index = 0;
                }
            }
        })
    </script>
</body>
</html>